package net.mingsoft.expertmanage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 专家信息实体类
 */
@Data
@TableName("expert_info")
public class ExpertEntity {
    @TableId(value = "expert_code", type = IdType.INPUT)
    private String expertCode;
    private Integer serialNo;
    private String name;
    private String gender;
    private Integer age;
    private String title;
    private String highestEducation;
    private String firstLevelDiscipline;
    private String secondLevelDiscipline;
    private String college;
    private String insideOutside;
    private String researchKeywords;
    private String achievementType;
    private String ipOwnership;
    private String socialPositions;
    private String verticalProjects;
    private String horizontalProjects;
    private String contact;
    private String remarks;
    
    /**
     * 获取ID (兼容方法)
     * @return 返回专家编号作为ID
     */
    public String getId() {
        return this.expertCode;
    }
    
    /**
     * 设置ID (兼容方法)
     * @param id 专家编号
     */
    public void setId(String id) {
        this.expertCode = id;
    }
} 